import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
import * as ElIconModules from '@element-plus/icons'
import AOS from 'aos'
import 'aos/dist/aos.css'
import 'wow.js/css/libs/animate.css'
import '../vue.config.js'
import axios from 'axios'
import VueAxios from 'vue-axios'
import './style/iconfont.css'
const app = createApp(App)
app.use(VueAxios,axios);
installElementPlus(app)
for (let iconName in ElIconModules) {
    app.component(iconName, ElIconModules[iconName])
}
app.use(store).use(AOS).use(router).mount('#app')
router.afterEach((to,from,next) => {
    window.scrollTo(0,0);
});
